import axios from 'axios'

// Set config defaults when creating the instance
const instance = axios.create({
    baseURL: 'http://127.0.0.1:8080/api',
    method: 'get',
    withCredentials: true,
    responseType: 'json',
    responseEncoding: 'utf8'
});

instance.defaults.withCredentials=true;

export default instance